/*
 * Created: Author: Aléx Carvalho / Date: Mar 17, 2015
 * 
 * Changed: $Author: ac280593@gmail.com $ / $Date: 2015-06-11 04:31:49 +0000 (Thu, 11 Jun 2015) $
 */
package com.cpm.view.zk.applications;

import com.cpm.view.IconKit;
import com.cpm.view.zk.MenuAction;
import com.cpm.view.zk.tree.user.UserTree;
import com.cpm.view.Icon;
import java.util.LinkedHashSet;
import org.zkoss.zk.ui.HtmlBasedComponent;

public class ConfigurationApplication extends AbstractApplication {

    private final UserTree userTree = new UserTree();
    public ConfigurationApplication() {
    }

    @Override
    protected void getMenuActions(LinkedHashSet<MenuAction> menuActions) {
    }

    @Override
    protected HtmlBasedComponent getComponentCenter() {
        return userTree.getElement();
    }

    @Override
    public String getLabel() {
        return "Configurações";
    }

    @Override
    public Icon getIcon() {
        return new Icon(IconKit.SAVE);
    }

    @Override
    public Double getPosition() {
        return 3.0;
    }

    @Override
    protected void initializeData() {
        userTree.buildTree();
    }
}
